<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>out对象</title>
<script>
 function doSome(){
	 <%
	     System.out.println("This is in server");
	     out.print("alert('hello world to jsp');");
	 %>
 }
</script>
</head>
<body>
<%
   out.print(out.getClass().getName()+"<br/>");
   out.print(out instanceof java.io.Writer);
%>
<hr/>
<%
  String []ar={"梨子","桃子","苹果","菠萝","柿子"};
%>
<ul>
<%
for(String s:ar){
	 %>

	<li><%=s%></li>
   <%} %>
</ul>
<input type="button" value="点击"  onclick="doSome()"/>
</body>
</html>